import { Component } from 'react';
import { connect } from 'dva';

class AuthorRoute extends Component {
  componentDidMount () {
    const { dispatch } = this.props;
    dispatch({
      type: 'user/getCurrentUser'
    })
  }
  render () {
    return null;
  }
}

export default connect()(AuthorRoute);